<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Eclipse &#8211; Radek&#039;s tech blog</title>
	<atom:link href="https://radektech.wordpress.com/category/it/java-it/eclipse-java-it-it/feed/" rel="self" type="application/rss+xml" />
	<link>https://radektech.wordpress.com</link>
	<description>Radoslaw Urbas homepage</description>
	<lastBuildDate>Wed, 06 Dec 2017 04:18:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='radektech.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s2.wp.com/i/buttonw-com.png</url>
		<title>Eclipse &#8211; Radek&#039;s tech blog</title>
		<link>https://radektech.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://radektech.wordpress.com/osd.xml" title="Radek&#039;s tech blog" />
	<atom:link rel='hub' href='https://radektech.wordpress.com/?pushpress=hub'/>
	<item>
		<title>Three problems with starting brand new Eclipse 4 RCP application</title>
		<link>https://radektech.wordpress.com/2012/11/20/three-problems-with-starting-brand-new-eclipse-4-rcp-application/</link>
		<comments>https://radektech.wordpress.com/2012/11/20/three-problems-with-starting-brand-new-eclipse-4-rcp-application/#comments</comments>
		<pubDate>Tue, 20 Nov 2012 20:10:50 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=242</guid>
		<description><![CDATA[Recently I decided to finally give Eclipse 4 RCP a try. I created small application in a few minutes. Everything worked smoothly in Eclipse IDE. Next step was to prepare Maven build. Using Tycho 0.16.0 I was able to build my brand new RCP application using command line. The problems started when I tried to [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=242&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently I decided to finally give Eclipse 4 RCP a try. I created small application in a few minutes. Everything worked smoothly in Eclipse IDE. Next step was to prepare Maven build. Using <a title="Tycho 0.16.0" href="http://wiki.eclipse.org/Tycho/Reference_Card" target="_blank">Tycho 0.16.0</a> I was able to build my brand new RCP application using command line. The problems started when I tried to run application built by Maven.</p>
<p>Here are three problems I experienced:</p>
<ul>
<li>Application crashing on start-up with an exception like this:
<pre>org.eclipse.core.runtime.AssertionFailedException:
null argument:applicationXMI argument missing</pre>
<p>In order to resolve that I had to add new program argument (Launching tab in Product Configuration Editor)</p>
<pre>-clearPersistedState</pre>
</li>
<li>Application crashing on start-up with another exception:
<pre>!ENTRY org.eclipse.osgi 4 0 2012-11-20 20:43:46.516
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).</pre>
<p>When you run your RCP application from IDE start-up levels for bundles are set appropriately, but this does not happen in product configuration. These three bundles should have Auto-Start set to true and following start levels (Configuration tab in Editor):</p>
<ul>
<li><em>org.eclipse.core.runtime</em> 2</li>
<li><em>org.eclipse.equinox.ds</em> 3</li>
<li><em>org.eclipse.equinox.event</em> 3</li>
</ul>
</li>
<li>Application starting up fine but no controls being rendered inside a part. Eclipse remote debug helped me to determine that an part object was instantiated as expectged but a method creating all the controls wasn&#8217;t actually called. For some reason annotation <em>@PostConstruct</em> wasn&#8217;t respected. In order to resolve this issue I had to replace bundle<em> javax.annotation</em> 1.1.0 with version 1.0.0. Eclipse Juno IDE is shipped with version 1.0.0 so everything worked fine there but Tycho picked up version 1.1.0 from <a title="Eclipse Juno p2 repository" href="http://download.eclipse.org/releases/juno" target="_blank">Eclipse p2 repository for Juno</a>.</li>
</ul><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/242/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=242&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2012/11/20/three-problems-with-starting-brand-new-eclipse-4-rcp-application/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
		<item>
		<title>Generating p2 meta data from command line</title>
		<link>https://radektech.wordpress.com/2010/06/01/generating-p2-meta-data-from-command-line/</link>
		<comments>https://radektech.wordpress.com/2010/06/01/generating-p2-meta-data-from-command-line/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 20:15:30 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[FeaturesAndBundlesPublisher]]></category>
		<category><![CDATA[generating]]></category>
		<category><![CDATA[meta data]]></category>
		<category><![CDATA[p2]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=215</guid>
		<description><![CDATA[Many times when working with Eclipse RCP I had to generate ad-hoc updatesites (usually containing some 3rd party plug-ins). What I usually did to achieve this (with Eclipse IDE): create new feature project add plug-ins to the feature create new updatesite project add the feature to the updatesite (pre-p2 style &#8211; site.xml) export newly created updatesite [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=215&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Many times when working with Eclipse RCP I had to generate ad-hoc updatesites (usually containing some 3rd party plug-ins). What I usually did to achieve this (with Eclipse IDE):</p>
<ul>
<li>create new feature project</li>
<li>add plug-ins to the feature</li>
<li>create new updatesite project</li>
<li>add the feature to the updatesite (pre-p2 style &#8211; site.xml)</li>
<li>export newly created updatesite (letting Eclipse to deal with creating p2 meta data)</li>
</ul>
<p>Since I needed to automate this process I started researching on p2 capabilities and found out that it can be done from command line using FeatureAndBundlesPublisher application. Sample command line invocation to do it:</p>
<pre>%ECLIPSE_EXE% -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher -metadataRepository file:/%P2_TARGET% -artifactRepository file:/%P2_TARGET% -source %P2_SRC% -compress -configs win32.win32.x86 -publishArtifacts</pre>
<p>Where:</p>
<ul>
<li>ECLIPSE_EXE &#8211; points to Eclipse executable;</li>
<li>P2_TARGET &#8211; path to an empty directory where p2 repository should be created;</li>
<li>P2_SRC &#8211; path to the directory with /plugins subdirectory and plug-ins to be published (jar files) inside;</li>
<li><em>-compress</em> parameter is optional. It compresses artifacts.xml and content.xml to jar (zip) files.</li>
</ul><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/215/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/215/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=215&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2010/06/01/generating-p2-meta-data-from-command-line/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
		<item>
		<title>Running servlets inside Equinox/Eclipse</title>
		<link>https://radektech.wordpress.com/2010/01/22/running-servlets-inside-equinox/</link>
		<comments>https://radektech.wordpress.com/2010/01/22/running-servlets-inside-equinox/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 17:57:34 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[equinox]]></category>
		<category><![CDATA[jetty]]></category>
		<category><![CDATA[servlets]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=195</guid>
		<description><![CDATA[Creating plug-in hosting servlet Create new plug-in project Add plug-in dependencies javax.servlet org.eclipse.equinox.http.registry Add extension: org.eclipse.equinox.http.registry.servlets Configure servlet mapping in extension definition &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;?eclipse version="3.4"?&#62; &#60;plugin&#62;   &#60;extension point="org.eclipse.equinox.http.registry.servlets"&#62; &#60;servlet alias="/echo" class="servlets.EchoServlet" /&#62; &#60;/extension&#62;   &#60;/plugin&#62; Create servlet class package servlets; package servlets; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=195&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<ul>
<li>Creating plug-in hosting servlet
<ul>
<li>Create new plug-in project<a href="https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png"><img data-attachment-id="196" data-permalink="https://radektech.wordpress.com/2010/01/22/running-servlets-inside-equinox/equinox_servlets_1/" data-orig-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png?w=620" data-orig-size="500,596" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="equinox_servlets_1" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png?w=620?w=252" data-large-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png?w=620?w=500" class="size-full wp-image-196 aligncenter" title="equinox_servlets_1" src="https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png?w=620" alt="equinox_servlets_1" srcset="https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png 500w, https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png?w=126 126w, https://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png?w=252 252w" sizes="(max-width: 500px) 100vw, 500px"   /></a></li>
<li>Add plug-in dependencies
<ul>
<li><strong><em>javax.servlet</em></strong></li>
<li><strong><em>org.eclipse.equinox.http.registry</em></strong></li>
</ul>
</li>
<li>Add extension: <strong><em>org.eclipse.equinox.http.registry.servlets</em></strong></li>
<li>Configure servlet mapping in extension definition
<pre class="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;?eclipse version="3.4"?&gt;
&lt;plugin&gt;
 
	&lt;extension point="org.eclipse.equinox.http.registry.servlets"&gt;
		&lt;servlet alias="/echo" class="servlets.EchoServlet" /&gt;
	&lt;/extension&gt;
 
&lt;/plugin&gt;</pre>
</li>
<li>Create servlet class
<pre>package servlets;

package servlets;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class EchoServlet extends HttpServlet {

	private static final long serialVersionUID = 137926368689939745L;

	@Override
	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) {

		String value = request.getParameter("value");
		PrintWriter writer;
		try {
			writer = response.getWriter();
			String outputText = "Echo Servlet inside Equinox/Eclipse says: "
					+ value;
			System.out.println(outputText);
			writer.write(outputText);
			writer.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}</pre>
</li>
</ul>
</li>
<li>Running plug-in hosting servlets in Eclipse IDE
<ul>
<li>Create new Run Configuration</li>
<li>Choose OSGi Framework</li>
<li>Deselect all preselected plug-ins from bundles list</li>
<li>Select only:
<ul>
<li>Newly created plug-in that&#8217;s hosting servlets</li>
<li><em><strong>org.mortbay.jetty.server</strong></em></li>
<li><em><strong>org.eclipse.equinox.http.jetty</strong></em></li>
</ul>
</li>
<li>Use Add Required Bundles option</li>
<li>Save configuration and Run it</li>
</ul>
</li>
<li>Using servlet
<ul>
<li>By default when running this configuration Jetty will start on port 80</li>
<li>Open a browser and hit URL for this example <em><a href="http://localhost/echo?value=Hello" rel="nofollow">http://localhost/echo?value=Hello</a><a href="https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png"><img data-attachment-id="209" data-permalink="https://radektech.wordpress.com/2010/01/22/running-servlets-inside-equinox/equinox_servlets_2/" data-orig-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png?w=620" data-orig-size="466,347" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="equinox_servlets_2" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png?w=620?w=300" data-large-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png?w=620?w=466" class="aligncenter size-full wp-image-209" title="equinox_servlets_2" src="https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png?w=620" alt="equinox_servlets_2" srcset="https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png 466w, https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png?w=150 150w, https://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png?w=300 300w" sizes="(max-width: 466px) 100vw, 466px"   /></a></em><a href="https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png"><img data-attachment-id="197" data-permalink="https://radektech.wordpress.com/2010/01/22/running-servlets-inside-equinox/equinox_servlets_3/" data-orig-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png?w=620" data-orig-size="579,616" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="equinox_servlets_3" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png?w=620?w=282" data-large-file="https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png?w=620?w=579" class="aligncenter size-full wp-image-197" title="equinox_servlets_3" src="https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png?w=620" alt="equinox_servlets_3" srcset="https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png 579w, https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png?w=141 141w, https://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png?w=282 282w" sizes="(max-width: 579px) 100vw, 579px"   /></a></li>
</ul>
</li>
</ul><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/195/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=195&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2010/01/22/running-servlets-inside-equinox/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>

		<media:content url="http://radektech.files.wordpress.com/2010/01/equinox_servlets_1.png" medium="image">
			<media:title type="html">equinox_servlets_1</media:title>
		</media:content>

		<media:content url="http://radektech.files.wordpress.com/2010/01/equinox_servlets_2.png" medium="image">
			<media:title type="html">equinox_servlets_2</media:title>
		</media:content>

		<media:content url="http://radektech.files.wordpress.com/2010/01/equinox_servlets_3.png" medium="image">
			<media:title type="html">equinox_servlets_3</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding menu item, command and handler</title>
		<link>https://radektech.wordpress.com/2009/10/27/adding-menu-item-command-and-handler/</link>
		<comments>https://radektech.wordpress.com/2009/10/27/adding-menu-item-command-and-handler/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 23:12:52 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[eclipse rcp]]></category>
		<category><![CDATA[handler]]></category>
		<category><![CDATA[menu item]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=172</guid>
		<description><![CDATA[Step by step in Eclipse IDE Create new Eclipse plug-in: File -&#62; New -&#62; Other -&#62; Plug-in Development -&#62; Plug-in Project Add dependency: MANIFEST.MF -&#62; Dependencies tab -&#62; Add -&#62; org.eclipse.ui Add extension point org.eclipse.ui.menus: plugin.xml -&#62; Extension -&#62; Add -&#62; org.eclipse.ui.menus Right-click -&#62; New -&#62; menuContribution Enter locationURI: menu:file Right click -&#62; New -&#62; command Enter [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=172&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h4>Step by step in Eclipse IDE</h4>
<ul>
<li>Create new Eclipse plug-in: File -&gt; New -&gt; Other -&gt; Plug-in Development -&gt; Plug-in Project</li>
<li>Add dependency: MANIFEST.MF -&gt; Dependencies tab -&gt; Add -&gt; <em>org.eclipse.ui</em></li>
<li>Add extension point org.eclipse.ui.menus: plugin.xml -&gt; Extension -&gt; Add -&gt; <em>org.eclipse.ui.menus </em>
<ul>
<li>Right-click -&gt; New -&gt; menuContribution
<ul>
<li>Enter locationURI: menu:file
<ul>
<li>Right click -&gt; New -&gt; command</li>
<li>Enter commandId: <em><strong>tk.urbas.eclipse.sample.sampleCommand</strong></em></li>
<li>Enter label: Sample Menu Item</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Add extension point org.eclipse.ui.commands: plugin.xml -&gt; Extensions -&gt; Add -&gt; <em>org.eclipse.ui.commands </em>
<ul>
<li>Right-click -&gt; New -&gt; command
<ul>
<li>Enter id: <em><strong>tk.urbas.eclipse.sample.sampleCommand</strong></em></li>
<li>Enter label: Sample Command</li>
</ul>
</li>
</ul>
</li>
<li>Add extension point org.eclipse.ui.handlers: plugin.xml -&gt; Extensions -&gt; Add -&gt; <em>org.eclipse.ui.handlers </em>
<ul>
<li>Right-click -&gt; New -&gt; handler
<ul>
<li>Enter commandId: <em><strong>tk.urbas.eclipse.sample.sampleCommand</strong></em></li>
<li>Enter class: tk.urbas.eclipse.sample.SampleHandler</li>
<li>Click class link and create class</li>
<li>Provide sample implementation of the handler class implementing <em>org.eclipse.core.commands.IHandler</em> or extending <em>org.eclipse.core.commands.AbstractHandler</em></li>
</ul>
</li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<div data-shortcode="caption" id="attachment_179" style="max-width: 364px" class="wp-caption alignleft"><img data-attachment-id="179" data-permalink="https://radektech.wordpress.com/2009/10/27/adding-menu-item-command-and-handler/adding_handler/" data-orig-file="https://radektech.files.wordpress.com/2009/10/adding_handler.png?w=620" data-orig-size="354,466" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="adding_handler" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/10/adding_handler.png?w=620?w=228" data-large-file="https://radektech.files.wordpress.com/2009/10/adding_handler.png?w=620?w=354" class="size-full wp-image-179" title="adding_handler" src="https://radektech.files.wordpress.com/2009/10/adding_handler.png?w=620" alt="Menu, command, handler" srcset="https://radektech.files.wordpress.com/2009/10/adding_handler.png 354w, https://radektech.files.wordpress.com/2009/10/adding_handler.png?w=114 114w, https://radektech.files.wordpress.com/2009/10/adding_handler.png?w=228 228w" sizes="(max-width: 354px) 100vw, 354px"   /><p class="wp-caption-text">Menu, command, handler</p></div>
<h4>MANIFEST.MF</h4>
<pre>Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Sample Handler
Bundle-SymbolicName: tk.urbas.eclipse.sample;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: urbas.tk
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.eclipse.ui</pre>
<h4>plugin.xml</h4>
<pre class="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;?eclipse version="3.4"?&gt;
&lt;plugin&gt;
   &lt;extension
         point="org.eclipse.ui.menus"&gt;
      &lt;menuContribution
            locationURI="menu:file"&gt;
         &lt;command
               commandId="tk.urbas.eclipse.sample.sampleCommand"
               label="Sample Menu Item"
               style="push"&gt;
         &lt;/command&gt;
      &lt;/menuContribution&gt;
   &lt;/extension&gt;
   &lt;extension
         point="org.eclipse.ui.commands"&gt;
      &lt;command
            id="tk.urbas.eclipse.sample.sampleCommand"
            name="Sample Command"&gt;
      &lt;/command&gt;
   &lt;/extension&gt;
   &lt;extension
         point="org.eclipse.ui.handlers"&gt;
      &lt;handler
            class="tk.urbas.eclipse.sample.SampleHandler"
            commandId="tk.urbas.eclipse.sample.sampleCommand"&gt;
      &lt;/handler&gt;
   &lt;/extension&gt;
 
&lt;/plugin&gt;</pre>
<h4>Handler &#8211; sample implementation showing a message</h4>
<pre>package tk.urbas.eclipse.sample;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;

public class SampleHandler extends AbstractHandler {

	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		MessageDialog.openInformation(Display.getDefault().getActiveShell(),
				"Sample Handler", "Sample Handler");
		return null;
	}
}</pre><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/172/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=172&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/10/27/adding-menu-item-command-and-handler/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>

		<media:content url="http://radektech.files.wordpress.com/2009/10/adding_handler.png" medium="image">
			<media:title type="html">adding_handler</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse 3.5 Galileo &#8211; my personal Top 5</title>
		<link>https://radektech.wordpress.com/2009/07/30/eclipse-3-5-galileo-my-personal-top-5/</link>
		<comments>https://radektech.wordpress.com/2009/07/30/eclipse-3-5-galileo-my-personal-top-5/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 21:31:40 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[3.5]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[galileo]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=126</guid>
		<description><![CDATA[There are several new and exciting features in Galileo release. Multiple projects, hundreds of contributors, huge audience&#8230; I decided to choose my very personal Top 5 for Galileo release: Update. New UI for installing and updating new features in Eclipse really leverages user experience. After introducing p2 in 3.4 a lot of people missed old [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=126&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>There are several new and exciting features in Galileo release. Multiple projects, hundreds of contributors, huge audience&#8230;</p>
<p>I decided to choose my very personal Top 5 for Galileo release:</p>
<ol>
<li>Update. New UI for installing and updating new features in Eclipse really leverages user experience. After introducing p2 in 3.4 a lot of people missed old Update Manager. With more stable and matured p2 in 3.5 version hopefully no one is missing 3.3 style updates any more. One capability I would find useful there is installing particular Installable Units instead just these which are based on Eclipse features. In p2 world all IUs are supposed to be equal.</li>
<li>Setting the cookies in Browser. I&#8217;m really happy to finally see setCookie(value, url) method in SWT Browser class. That&#8217;s the part of API that was really missing there to make embedded browser more functional in Eclipse RCP world. Next step would be probably providing SWT support for the Webkit based browsers.</li>
<li>Target Platforms. Galileo way of defining target platform is another item I find really useful for Eclipse RCP. Finally at least partially runtime for Eclipse RCP application can be independent from the plug-ins set in Eclipse IDE used for development!</li>
<li>Mylyn. Previous Mylyn version satisfied most of my requirements to work with Bugzilla. But new Mylyn Editor just feels better for me even if it took me a day or two to get used to the context activation button being moved from right to left side of the toolbar.</li>
<li>OSGi Declarative Services. I&#8217;m excited about declarative services in Equinox. I didn&#8217;t have opportunity to try it yet but I have high hopes for the near future!</li>
</ol><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/126/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=126&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/07/30/eclipse-3-5-galileo-my-personal-top-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
		<item>
		<title>p2 and fragments</title>
		<link>https://radektech.wordpress.com/2009/05/18/p2-and-fragments/</link>
		<comments>https://radektech.wordpress.com/2009/05/18/p2-and-fragments/#comments</comments>
		<pubDate>Mon, 18 May 2009 20:58:30 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[fragment provisioning]]></category>
		<category><![CDATA[p2]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=110</guid>
		<description><![CDATA[Recently I&#8217;m getting a bit confused about p2. There is an update site created with PDE headless build. There are IUs generated for each plug-in/fragment/feature. Everything looks great so far. Let&#8217;s assume: plug-in A and fragment B with a defined host plug-in A are sitting together on single update site. Plug-in A in reality cannot [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=110&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently I&#8217;m getting a bit confused about p2. There is an update site created with PDE headless build. There are IUs generated for each plug-in/fragment/feature. Everything looks great so far.</p>
<p>Let&#8217;s assume: plug-in A and fragment B with a defined host plug-in A are sitting together on single update site. Plug-in A in reality cannot run without appropriate version of fragment B (e.g. situation similar  to SWT).</p>
<p>My understanding of p2-power was that I wouldn&#8217;t need to create separate feature C aggregating A and B just to make fragment B be automatically installed when I request installation of plug-in A.</p>
<p>I spent some time on reviewing Eclipse Bugzilla and mailing lists. Interesting findings:</p>
<p><a title="http://wiki.eclipse.org/Equinox_p2_Meeting_2007#Fragments_optional_vs._requirement" href="http://wiki.eclipse.org/Equinox_p2_Meeting_2007#Fragments_optional_vs._requirement" target="_blank">http://wiki.eclipse.org/Equinox_p2_Meeting_2007#Fragments_optional_vs._requirement</a></p>
<p><a title="https://bugs.eclipse.org/bugs/show_bug.cgi?id=256430" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=256430" target="_blank">https://bugs.eclipse.org/bugs/show_bug.cgi?id=256430</a></p>
<p>Any suggestions about handling such &#8220;required&#8221; fragment scenario without getting rid of autogenerated p2 repository and hand crafting p2 metadata?</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/110/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=110&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/05/18/p2-and-fragments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
		<item>
		<title>Defining a background Job to run periodically</title>
		<link>https://radektech.wordpress.com/2009/03/01/defining-a-background-job-to-run-periodically/</link>
		<comments>https://radektech.wordpress.com/2009/03/01/defining-a-background-job-to-run-periodically/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 11:47:25 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[earlystartup]]></category>
		<category><![CDATA[eclipse jobs api]]></category>
		<category><![CDATA[periodical task]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=81</guid>
		<description><![CDATA[One may need to run some task periodically in the background in Eclipse. This background task should run automatically and shouldn&#8217;t block user from regular usage of the application. My proposal for accomplishing this is using Eclipse Jobs API and org.eclipse.ui.startup extension-point. Adding org.eclipse.ui.startup extension: Dependencies: org.eclipse.ui org.eclipse.core.runtime Extension: &#60;?xml version="1.0" encoding="UTF-8"?&#62; &#60;?eclipse version="3.2"?&#62; &#60;plugin&#62; [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=81&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>One may need to run some task periodically in the background in Eclipse. This background task should run automatically and shouldn&#8217;t block user from regular usage of the application. My proposal for accomplishing this is using Eclipse Jobs API and <em>org.eclipse.ui.startup</em> extension-point.</p>
<ol>
<li>Adding <em>org.eclipse.ui.startup</em> extension:
<ul>
<li>Dependencies:
<ul>
<li><em>org.eclipse.ui</em></li>
<li><em>org.eclipse.core.runtime</em></li>
</ul>
</li>
<li>Extension:
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;?eclipse version="3.2"?&gt;
&lt;plugin&gt;
   &lt;extension point="org.eclipse.ui.startup"&gt;
      &lt;startup class="tk.urbas.eclipse.urbanlife.Startup"&gt;&lt;/startup&gt;
   &lt;/extension&gt;
&lt;/plugin&gt;</pre>
</li>
</ul>
</li>
<li>Implementing Job:
<pre>package tk.urbas.eclipse.urbanlife;

import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;

public class RefreshDataJob extends Job {

    public RefreshDataJob(String name) {
        super(name);
    }

    @Override
    protected IStatus run(IProgressMonitor monitor) {
        // Work to do in the background
        return Status.OK_STATUS;
    }
}</pre>
</li>
<li>Scheduling Job to run periodically:
<pre>package tk.urbas.eclipse.urbanlife;

import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
import org.eclipse.ui.IStartup;

public class Startup implements IStartup {

    private static final long STARTUP_DELAY = 5000; // 5 seconds delay for first run
    protected static final long JOB_INTERVAL = 60000; // Job should run every 60 seconds

    public void earlyStartup() {
        final Job updateJob = new RefreshDataJob("Refreshing data in the background");
        updateJob.schedule(STARTUP_DELAY);
        updateJob.addJobChangeListener(new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
                super.done(event);
                updateJob.schedule(JOB_INTERVAL);
            }
        });
    }
}</pre>
</li>
</ol>
<p>
Let me know if you have any better solution for implementing this. All improvements, suggestions and comments will be greatly appreciated.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/81/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=81&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/03/01/defining-a-background-job-to-run-periodically/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse plug-in as a web service client</title>
		<link>https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/</link>
		<comments>https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 21:16:07 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[axis]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[quick start]]></category>
		<category><![CDATA[web service client]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=57</guid>
		<description><![CDATA[Recently I was playing around consuming web service inside Eclipse plug-in. Making simple web service call maybe a bit tricky at the beginning. I&#8217;m going to provide quick start instruction here, Required software: Eclipse for RCP/Plug-in Developer JEE Standard Tools &#38; Axis Configuration steps: Define new JEE service in a workspace Create new plug-in project [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=57&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Recently I was playing around consuming web service inside Eclipse plug-in. Making simple web service call maybe a bit tricky at the beginning. I&#8217;m going to provide quick start instruction here,</p>
<p><em><strong>Required software</strong></em>:</p>
<ul>
<li>Eclipse for RCP/Plug-in Developer</li>
<li>JEE Standard Tools &amp; Axis<br /><img data-attachment-id="59" data-permalink="https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/eclipse_ws_quickstart_1/" data-orig-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_1.png" data-orig-size="550,414" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="JEE Standard Tools" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_1.png?w=300" data-large-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_1.png?w=550" class="aligncenter size-medium wp-image-59" title="JEE Standard Tools" src="https://i0.wp.com/urbas.tk/wp-content/eclipse_ws_quickstart_1-300x225.png" alt="JEE Standard Tools" width="300" height="225" /></li>
</ul>
<p><em><strong>Configuration steps</strong></em>:</p>
<ul>
<li>Define new JEE service in a workspace<br /><img data-attachment-id="60" data-permalink="https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/eclipse_ws_quickstart_2/" data-orig-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_2.png" data-orig-size="525,500" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Defining JEE server" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_2.png?w=300" data-large-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_2.png?w=525" class="aligncenter size-medium wp-image-60" title="Defining JEE server" src="https://i1.wp.com/urbas.tk/wp-content/eclipse_ws_quickstart_2-300x285.png" alt="Defining JEE server" width="300" height="285" /></li>
<li>Create new plug-in project<br /><img data-attachment-id="61" data-permalink="https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/eclipse_ws_quickstart_3/" data-orig-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_3.png" data-orig-size="525,500" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Creating new plug-in project" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_3.png?w=300" data-large-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_3.png?w=525" class="aligncenter size-medium wp-image-61" title="Creating new plug-in project" src="https://i0.wp.com/urbas.tk/wp-content/eclipse_ws_quickstart_3-300x285.png" alt="Creating new plug-in project" width="300" height="285" /></li>
<li>Add following dependencies to the plug-in:
<ul>
<li><em>org.apache.commons.logging</em></li>
<li><em>javax.wsdl</em></li>
<li><em>javax.xml.rpc</em></li>
<li><em>javax.xml.soap</em></li>
<li><em>org.apache.commons.discovery</em></li>
<li><em>org.apache.axis</em></li>
</ul>
<p><img data-attachment-id="62" data-permalink="https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/eclipse_ws_quickstart_4/" data-orig-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_4.png" data-orig-size="398,412" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Web service client dependencies" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_4.png?w=290" data-large-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_4.png?w=398" class="aligncenter size-medium wp-image-62" title="Web service client dependencies" src="https://i0.wp.com/urbas.tk/wp-content/eclipse_ws_quickstart_4-289x300.png" alt="Web service client dependencies" width="289" height="300" /></li>
<li>Generate web service client code<br /><img data-attachment-id="64" data-permalink="https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/eclipse_ws_quickstart_51/" data-orig-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_51.png" data-orig-size="525,500" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Generating web service client code" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_51.png?w=300" data-large-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_51.png?w=525" class="aligncenter size-medium wp-image-64" title="Generating web service client code" src="https://i0.wp.com/urbas.tk/wp-content/eclipse_ws_quickstart_51-300x285.png" alt="Generating web service client code" width="300" height="285" />
<p><img data-attachment-id="65" data-permalink="https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/eclipse_ws_quickstart_6/" data-orig-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_6.png" data-orig-size="531,500" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Generating web service client code based on WSDL" data-image-description="" data-medium-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_6.png?w=300" data-large-file="https://radektech.files.wordpress.com/2009/02/eclipse_ws_quickstart_6.png?w=531" class="aligncenter size-medium wp-image-65" title="Generating web service client code based on WSDL" src="https://i1.wp.com/urbas.tk/wp-content/eclipse_ws_quickstart_6-300x282.png" alt="Generating web service client code based on WSDL" width="300" height="282" /></li>
</ul>
<p><em><strong>Consume web service</strong></em>:</p>
<p>Using web service in side a plug-in is no different than anyone else. Sample of invoking web service method:</p>
<pre>TransportServiceSoap service = new TransportServiceLocator().getTransportServiceSoap();
service.getCities();</pre>
<p>Instruction presented above is based on Eclipse 3.4.1 and uses sample web service from <a href="http://www.urbanlife.pl/">http://www.urbanlife.pl/</a></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/57/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=57&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/02/20/eclipse-plug-in-as-a-web-service-client/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>

		<media:content url="http://urbas.tk/wp-content/eclipse_ws_quickstart_1-300x225.png" medium="image">
			<media:title type="html">JEE Standard Tools</media:title>
		</media:content>

		<media:content url="http://urbas.tk/wp-content/eclipse_ws_quickstart_2-300x285.png" medium="image">
			<media:title type="html">Defining JEE server</media:title>
		</media:content>

		<media:content url="http://urbas.tk/wp-content/eclipse_ws_quickstart_3-300x285.png" medium="image">
			<media:title type="html">Creating new plug-in project</media:title>
		</media:content>

		<media:content url="http://urbas.tk/wp-content/eclipse_ws_quickstart_4-289x300.png" medium="image">
			<media:title type="html">Web service client dependencies</media:title>
		</media:content>

		<media:content url="http://urbas.tk/wp-content/eclipse_ws_quickstart_51-300x285.png" medium="image">
			<media:title type="html">Generating web service client code</media:title>
		</media:content>

		<media:content url="http://urbas.tk/wp-content/eclipse_ws_quickstart_6-300x282.png" medium="image">
			<media:title type="html">Generating web service client code based on WSDL</media:title>
		</media:content>
	</item>
		<item>
		<title>Automatic PDE build with Pluginbuilder</title>
		<link>https://radektech.wordpress.com/2009/02/11/automatic-pde-build-with-pluginbuilder/</link>
		<comments>https://radektech.wordpress.com/2009/02/11/automatic-pde-build-with-pluginbuilder/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 22:10:37 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[headless build]]></category>
		<category><![CDATA[map file]]></category>
		<category><![CDATA[pde]]></category>
		<category><![CDATA[pluginbuilder]]></category>
		<category><![CDATA[rcp]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=54</guid>
		<description><![CDATA[Pluginbuilder is Eclipse tool that generates build configuration based on PDE build. By default the tool generates map file containing the information how source code of the plug-ins should be obtained. Supported methods are: CVS, GET and COPY. Assuming that you want to build your features or product from source files that are checked-out from [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=54&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.pluginbuilder.org/" target="_blank">Pluginbuilder</a> is Eclipse tool that generates build configuration based on PDE build. By default the tool generates map file containing the information how source code of the plug-ins should be obtained. Supported methods are: CVS, GET and COPY. Assuming that you want to build your features or product from source files that are checked-out from repository independently from the build process COPY options seems to look reasonable. There are few problems with that:</p>
<ul>
<li>it requires absolute paths to plug-ins/features locations</li>
<li>every single plug-in has to be listed there</li>
</ul>
<p>Workaround for this is not using map file at all and provide appropriate build directory structure outside. To skip fetching resources based on map file configuration one need to set <strong>skipMaps</strong> property in <strong>build.properties</strong> file. Next step is to configure getting plug-ins/features resources into build directory. Recommended phase for copying the source code is <strong>preSetup</strong> phase in PDE build. To hook into this phase standard ant task for copying the files/directories in to build directory have to be invoked in preSetup target in <strong>customTargets.xml</strong> (it is generated by Pluginbuilder as well as other configuratoin files in build-files directory).</p>
<p>Those two modifications allow to make use of Pluginbuilder generated scripts to build Eclipse based applications without coupling it tightly to version control system.</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/54/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=54&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/02/11/automatic-pde-build-with-pluginbuilder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
		<item>
		<title>Eclipse Jobs API &#8211; Errata</title>
		<link>https://radektech.wordpress.com/2009/02/04/eclipse-jobs-api-errata/</link>
		<comments>https://radektech.wordpress.com/2009/02/04/eclipse-jobs-api-errata/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 17:19:54 +0000</pubDate>
		<dc:creator><![CDATA[radogol]]></dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[jobs api]]></category>
		<category><![CDATA[progress]]></category>
		<category><![CDATA[rcp]]></category>

		<guid isPermaLink="false">http://urbas.tk/?p=48</guid>
		<description><![CDATA[My colleague Lukasz Milewski has just spotted a missing piece in a code sample for creating icons presented in previous post. In the screenshot you can see nice icons for currently running Jobs as well as for scheduled Jobs. You need to set two properties in your Job implementation to associate an icon with it. [&#8230;]<img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=51&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>My colleague <a href="http://milewski.ws/" target="_blank">Lukasz Milewski</a> has just spotted a missing piece in a code sample for creating icons presented in previous post. In the screenshot you can see nice icons for currently running Jobs as well as for scheduled Jobs. You need to set two properties in your Job implementation to associate an icon with it.</p>
<pre>
	setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE);
	setProperty(IProgressConstants.ICON_PROPERTY, ImageDescriptorFactory
		.createImageDescriptor(ICON_NAME));
</pre><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radektech.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radektech.wordpress.com/51/" /></a> <img alt="" border="0" src="https://pixel.wp.com/b.gif?host=radektech.wordpress.com&#038;blog=137277054&#038;post=51&#038;subd=radektech&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>https://radektech.wordpress.com/2009/02/04/eclipse-jobs-api-errata/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/99dd2413b419e050315677f920554c09?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">radogol</media:title>
		</media:content>
	</item>
	</channel>
</rss>
